#include "app_message.h"
#include "log/log.h"
#include "app_common.h"

int main(int argc, char *argv[])
{
    char *json_str= "{\"conn_type\":1,\"id\":\"5858\",\"msg\":\"61626364\"}";

    char bytes_buff[100] = {0};
    int bytes_len = app_message_json_to_bytes(json_str, bytes_buff, 100);
    log_info("bytes_len:%d", bytes_len);
    
    app_common_print_hex(bytes_buff,bytes_len);

    char *json = app_message_bytes_to_json(bytes_buff, bytes_len);
    log_info("json:%s", json);
    return 0;
}

